<?php

include_once APPLICATION_DIR . "/application/model/SERVICE_GROUP.php";

class Service_Group extends DataObjects_SERVICE_GROUP
{
    public function validateInput(){
        global $error_msg;

        return $error_msg->isNoError();
    }
	public function canBeDeleted($id){
	   $service = new Service_Booking();
       $service->ID_SERVICE_GROUP = $id;
       $service->find();
       if($service->N == 0)
           return true;
       else
           return false;
   }
}
?>
